﻿	      <?php include("conn.php");
             mysql_query('SET NAMES UTF8'); 

	  

class MyPrizeBean
{   

    public $name;
	public $userid;
	public $sex;
	public $images;
	

	function __construct($name,$userid,$sex,$images)
	{
		$this->name      = $name;
		$this->userid      = $userid;
		$this->sex      = $sex;
		$this->images      = $images;
		
	}
}

$prize = array();
$rert30=mysql_query("select *from yaoqing where  userid ='".$_REQUEST[userid]."'");
while($rowf=mysql_fetch_array($rert30))

{
	
	  
$rert31=mysql_query("select *from user where  userid ='".$rowf[userid]."'");
$rowf1=mysql_fetch_array($rert31);


	

$prize[] = new MyPrizeBean($rowf1[niname],$rowf1[userid],$rowf1[sex],$rowf1[images]);
	}
echo json_encode($prize);


?>